<?php
load_widgets('foot');
?>
<div class="clear"></div>
<div id="footer">
  <div id="footer-widget-area" style="text-align:center">
    <div id="first" class="widget-area">
      <ul class="xoxo">
        <div class="adwidget">
          <div class="left"><img src="<?php echo $this->template->url_theme; ?>images/Default/logo.png" alt="Game hay nhất"></div>
          <div class="right">
            <h3 class="highline"><a href="<?php echo current_url();?>" title="<?php echo @$seo['title']; ?>"><?php echo @$seo['title']; ?></a></h3>
            <div class="copyright"> © Copyright 2014 GAMEHAYNHAT.COM, all rights reserved. ® Ghi rõ nguồn "GAMEHAYNHAT.COM" khi bạn phát hành lại thông tin từ website này. </div>
          </div>
        </div>
      </ul>
    </div>
    <!-- #first .widget-area -->
    
    <div id="second" class="widget-area">
      <ul class="xoxo">
        <!--<div class="textwidget">GAME, NHAC, GAME VUI, GAME ONLINE, GAME MINI, GAME DAO VANG, GAME HAY, GAME KIM CUONG, GAME THOI TRANG, TRO CHOI, GAME NAU AN, GAME DUA XE, GAME BAN SUNG, CHOI GAME, GAME BONG DA, PIKACHU, LINE 98, TIN TUC, TIN NHANH, THOI TRANG, BONG DA, BONG DA ANH, THE THAO, PHIM, GIA VANG HOM NAY, MP3, CHUNG KHOAN, KET QUA XO SO, LAM DEP, VIEC LAM, TUYEN DUNG, HINH NEN DIEN THOAI, NHAC CHUONG HAY, ANGRY BIRDS, BOOM</div>-->
      </ul>
    </div>
    <!-- #second .widget-area --> 
    
  </div>
</div>
<?php
        //add js
		
        ?>        
        <script>(function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=<?php echo @$this->config->item('FACEBOOK_APP_ID');?>&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
        </script>
<!-- 
<script type="text/javascript">
$(document).ready(function(){
	$("img.gamethumb, .attachment-72x60 , .gamebox_image img" ).imgr({size:"1px",color:"#eeeeee",radius:"8px"});
});
$(function(){
	$('#more-navigation, .Menu').each(function() {
		$(this).corner("5px");
	});
	$('.hide-title').each(function() {
		$(this).attr("title","");
	});
	$('.gamebox h1 span').each(function() {
		$(this).corner("tl bl 5px");
	});
	
});

</script>
-->

<?php /*
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
  ga('create', 'UA-53648371-1', 'auto');
  ga('send', 'pageview');
 
</script>
*/?>
<script>
var element = document.getElementById("blogname");
//element.innerHTML = '<h1><a href="<?php echo base_url(); ?>" title="Game Hay Nhat"><img src="<?php echo $this->template->url_theme; ?>/images/Default/logo.png" alt="Game hay nhat"> </a></h1>';
</script>

<script>(function() {
  var _fbq = window._fbq || (window._fbq = []);
  if (!_fbq.loaded) {
    var fbds = document.createElement('script');
    fbds.async = true;
    fbds.src = '//connect.facebook.net/en_US/fbds.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(fbds, s);
    _fbq.loaded = true;
  }
  _fbq.push(['addPixelId', '483381658466682']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=483381658466682&amp;ev=PixelInitialized" /></noscript>

<script>
//$("img.lazy").show().lazyload();
</script>

<?php if($this->agent->is_mobile()) { ?>
 <div id="dialog-confirm">
  <a href="<?php echo base_url();?>mobile/" class="redirect_mobile" target="_blank">
  <img  src="<?php echo base_url();?>template/images/popuphtml5.png" width="100%"/>
  </a>
</div>

 <script>
 $(function (){

 $('#dialog-confirm').dialog({
	 modal: true,
	 closeOnEscape: false,
	 resizable: false
 });
 });
 </script>
<style type="text/css">
.ui-dialog .ui-dialog-content{
	border:0 !important
}
 .redirect_mobile, .redirect_mobile:hover {

 }
.redirect_mobile a img { border:0 !important;}
@media screen and (orientation: portrait){
.ui-dialog {
    background:none !important;
	left: 15vw !important;
    margin-top: 0 !important;
    width: 70vw !important;
	top:30vh !important;
	position:fixed !important
}
}
@media screen and (orientation: landscape){
.ui-dialog {
    background:none !important;
	left: 20vw !important;
    margin-top: 0 !important;
    width: 60vw !important;
	top:0vh !important;
	position:fixed !important
}
}
.ui-dialog-title {
    background: none;
}

.ui-dialog-titlebar .ui-button{display:none}
.ui-widget-overlay {
    
}
 </style>
 
 <?php } ?>